//
//  BRHomeHandler.m
//  MyBaseProject
//
//  Created by 任波 on 2017/9/11.
//  Copyright © 2017年 任波. All rights reserved.
//

#import "BRHomeHandler.h"
#import "BRHomeModel.h"
#import "HttpTool.h"
#import "NSObject+Parse.h"

@implementation BRHomeHandler

#pragma mark - 获取APP配置信息
+ (void)executeAppSettingInfoTaskWithParams:(NSDictionary *)params Success:(SuccessBlock)success Failed:(FailedBlock)failed {
    
}

#pragma mark - 获取新闻列表
+ (void)executeNewsListTaskWithParams:(NSDictionary *)params Success:(SuccessBlock)success Failed:(FailedBlock)failed {
    [HttpTool getWithUrl:API_News params:nil success:^(id responseObject) {
        NSLog(@"新闻列表：%@", responseObject);
        success([BRNewsListModel parse:responseObject]);
    } failure:^(NSError *error) {
        failed(error);
    }];
}

@end
